package org.gw.building.repositories;

import org.gw.building.model.Tyxxrzb;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by qwx89 on 2017/7/30.
 */
public interface TyxxrzbRepository extends CrudRepository<Tyxxrzb,String> {
    @Modifying
    @Query("delete from Tyxxrzb t where t.yx = ?1")
    void deleteByYx(String departmentId);
}
